package entity;

import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "prog_taxonomy")
public class Taxonomy {

	private Long id;
	private String name;
	private TagType tagtype;
	// private Set<Tag> group;

	public Taxonomy() {

	}

	public Taxonomy(String name, TagType tagtype) {
		super();
		this.name = name;
		this.tagtype = tagtype;
	}
	@Id
	@SequenceGenerator(name = "Taxonomy_gen", sequenceName = "Taxonomy_index")
	@GeneratedValue(generator = "Taxonomy_gen", strategy = GenerationType.SEQUENCE)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public TagType getTagtype() {
		return tagtype;
	}

	public void setTagtype(TagType tagtype) {
		this.tagtype = tagtype;
	}

	@Override
	public String toString() {
		return "Taxonomy [id=" + id + ", name=" + name + ", tagtype=" + tagtype
				+ "]";
	}

}
